//
// Created by 孟令涛 on 24-7-15.
//

#ifndef DEMO1_CARCONTROLTASK_H
#define DEMO1_CARCONTROLTASK_H

#include "main.h"
#include "tim.h"
#include <stdbool.h>

#define LEFT1_PIN GPIO_PIN_14
#define LEFT2_PIN GPIO_PIN_13
#define RIGHT1_PIN GPIO_PIN_15
#define RIGHT2_PIN GPIO_PIN_12

#define LEFT1_PORT GPIOC
#define LEFT2_PORT GPIOC
#define RIGHT1_PORT GPIOC
#define RIGHT2_PORT GPIOB





bool ReadSensor(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin);


void CarControlTask(void *argument);

#endif //DEMO1_CARCONTROLTASK_H
